<!DOCTYPE HTML>
<html xml:lang="zh-CN">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" >
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

<title>小米手机5立即购买-小米商城</title>

<meta name="viewport" content="width=1226" />
<meta name="description" content="小米手机5开放购买页面支持4G网络，全网通，包括标准版、高配版、尊享版，有多种颜色可以选择" />
<meta name="keywords" content="小米5,小米手机,小米手机官网" />
<link rel="shortcut icon" href="//s01.mifile.cn/favicon.ico" type="image/x-icon">
<link rel="icon" href="//s01.mifile.cn/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/xiangqingye/Css/base.min.css" />
<link rel="stylesheet" type="text/css" href="/xiangqingye/Css/buy-choose.min.css" />


<script type="text/javascript" src="/xiangqingye/js/jquery-1.8.3.min.js"></script>


</head>
<body>
    <div class="site-header site-mini-header">
        <div class="container">
            <div class="header-logo">
                <a class="logo ir" href="//www.mi.com/index.html" title="小米官网" >小米官网</a>
            </div>
            <div class="header-title" id="J_miniHeaderTitle"></div>

            <div class="topbar-info" id="J_userInfo">
                @if(session('id'))
                        
                     <a class="head_nav_a" href='#'>{{session('username')}}</a>
                     <span>|</span>
                     <a class="head_nav_a" href='#'>退出</a>
                     <span>|</span>
                        
                     <a class="head_nav_a" href='#'>个人中心</a>
                     @else
                     <a class="head_nav_a" href="{{url('/home/login')}}">登陆</a>
                     <span>|</span>
                     <a class="head_nav_a" href="{{url('/home/reg')}}">注册</a>
                     @endif
        </div>
    </div>
    <!-- .site-mini-header END -->

    <div class="container breadcrumbs">
    <a href='//www.mi.com/index.html'>首页</a><span class="sep">/</span><span>购买小米手机</span></div>


<style>
.msg-bd font {display:none;}
</style>
<style>

    .channel-mihone {
    position: relative;
    height: 600px;
    background: url("/xiangqingye/Images/phone-section-05.jpg") no-repeat center;
}
.channel-mihone .channel-mihone-des {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background-color: rgba(0,0,0,0.7);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#b2000000", endColorstr="#b2000000")\9;
    color: #fff;
}
.channel-mihone .channel-mihone-des dl {
    float: left;
    width: 820px;
    padding: 40px 0 0 80px;
}
.channel-mihone ul, .channel-mihone li, .channel-mihone p, .channel-mihone dl, .channel-mihone dt, .channel-mihone dd {
    margin: 0;
    padding: 0;
    list-style: none;
}
.channel-mihone .channel-mihone-des dl dt {
    margin-bottom: 10px;
    font-size: 24px;
    -webkit-font-smoothing: antialiased;
}
.channel-mihone ul, .channel-mihone li, .channel-mihone p, .channel-mihone dl, .channel-mihone dt, .channel-mihone dd {
    margin: 0;
    padding: 0;
    list-style: none;
}
.channel-mihone .channel-mihone-des dl dd {
    line-height: 1.8;
    color: #f5f5f5;
}
.channel-mihone .channel-mihone-des p .btn {
    display: block;
    margin-bottom: 10px;
    background-color: transparent;
}
.channel-mihone .channel-mihone-des p {
    float: right;
    padding: 25px 35px 0 0;
}


.b{
    border-bottom-color: #f36701;
    border-left-color: #f36701;
    border-right-color: #f36701;
    border-top-color: #f36701;
}
.but
{
    background-color: #ff6700;
    color: #fff;
}
</style>

<div class="container buy-choose-box">
    <div class="hd">
        <ul class="clearfix pro-nav-bar pro-nav-7" id="J_navBar">
            @foreach($pid as $k=>$v)
            <li class="J_item" data-pro="note3">
                <a href="">{{$v->catename}}</a>
            </li>
           @endforeach
        </ul>
    </div>

   
    <div class="bd">
        <div class="pro-choose-main clearfix" id="J_chooseMain">
            <div class="pro-view">
                <img src="{{$default->image}}" alt="" id="J_proImg" style="height: 80%;">
            </div>
            <div class="pro-info"  >
                <!-- 参数选择 -->
                <div class="pro-title clearfix">
                <h1>
                        <span class="pro-name J_proDesc">购买{{$default->proname}}</span>

                        <span class="pro-price J_proPrice">
                        {{$default1->price}}元起
                             
                        </span>

                </h1>
                    <a id="J_proMore" target="_blank" class="pro-more" href=""> <h4></h4></a>
                </div>
                <p id = "miaoshu"></p>
                <p style="color:red;">
                  
                <br>
                温馨提示：产品是否购买成功，以最终下单为准哦，请尽快结算
                </p>
                <p></p>
               <!--  -->

                <div class="step-title">
                1. 选择版本
                <i class="pro-version-desc-icon">!</i>
                <span class="pro-version-desc J_verDesc" data-index="1"></span>
                </div>

                <div id="J_proStep">
                    <div class="pro-choose-step J_step" data-index="1">
                      <!-- <div class="step-title">
                        1. 选择版本 <i class="pro-version-desc-icon">!</i>
                      </div> -->

                      <ul class="step-list clearfix J_stepList">
                        @foreach($default3 as $k=>$v)
                        <li data-title-price="1999元" title="{{$v->size}}" data-node-id="770" data-index="1" class="J_stepItem">{{$v->size}}
                            <!-- 库存id    以及商品的id -->
                      <input type="hidden" name='size' value="{{$v->size}} " class="kucun">
                      <input type="hidden" name='pirce' value="{{$v->price}} " class="price">
                      <input type="hidden" name='g_id' value="{{$v->gid}} " class="g_id">
                      <input type="hidden" name='g_id' value="{{$v->miaoshu}} " class="miaoshu">

                        </li> 
                        @endforeach
                       
                      </ul>
                    </div>

                    <div class="pro-choose-step J_step" data-index="2">
                      <div class="step-title">
                        2. 选择颜色 <i class="pro-version-desc-icon">!</i>
                      </div>

                      <ul class="step-list clearfix J_stepList">

                       @foreach($default2 as $k=>$v)
                      
                        <li class="a"><img alt="白色" src="{{$v->image}}" />{{$v->color}}

                        <input type="hidden" name='color' value="{{$v->color}} " class="guige">
                         <input type="hidden" name='pic' value="{{$v->image}} " class="image">
                        </li>
                       
                        @endforeach
                       
                      </ul>
                    </div>
                  </div>



                <!-- 点击完手机颜色后显示套餐呢 默认隐藏 style="display:block" " -->
                 <div id="J_choosePackage" class="pro-choose-step" style="display:none;" >
                    <h3 class="step-title">3. 添加特惠配件套装</h3>

                    <ul class="step-list clearfix">

                    @foreach($res as $k=>$v)

                      <li title="{{$v->tname}} {{$v->xprice}}元"  class="J_packageItem">{{$v->tname}}

                    <input type="hidden" name='id' value="{{$v->id}} " class="pk">

                      <br />

                     {{$v->xprice}}元 <i>原价{{$v->yprice}}元</i></li>

                     @endforeach

                      <li class="J_packageItem" >裸机
                        <input type="hidden" name='id' value="0" class="pk" >
                      <br />
                      <i>不享受优惠</i></li>
                    </ul>
                  </div>




                  <div id="J_chooseResultMsg" class="choose-result-msg">
                    <span class="msg-tit">您选择了以下产品:</span>
                    <p class="msg-bd">小米手机5 标准版 黑色 1999元</p>
                </div>
                


                <!-- 套餐内商品显示区域 默认隐藏 style="display:none;"-->
                 <div id="J_packageListBox" class="package-list" style="display:none;">
                        <ul id="J_packageList" class="list clearfix">
                        @foreach($tcsp as $k=>$v)
                          <li class="item">
                            <div class="item-img J_itemImg">

                            <img  id = "tupian" alt="" src="{{$v->image}}"/></div>
                            <div class="item-title J_itemTitle">
                              {{$v->packagepro}} {{$v->things}}
                            </div>

                          </li>

                        @endforeach
                        </ul>
                      </div>

            <div id="J_chooseResultInit" class="pro-choose-result" style ='display:none;'>
                <a class="btn btn-large btn-dakeLight but" href="{{url('/home/cart')}}" target = "_blank">加入购物车</a> 
                
            </div>



            </div>
            <!-- pro-info END -->
        </div>
        <!-- pro-choose_main End-->
    </div>
    <!-- bd END -->
</div>
<!-- buy-choose-box END -->

<div class="main-pro-box" id="J_proDetailBox">

    <div class="pro-detail-box">
            <!-- 商品详细介绍 -->




    </div>

   
    <div class="container channel-mihone">
        <div class="channel-mihone-des">
            <dl>
                <dt>小米之家及官方授权维修网点</dt>
                <dd>
                    欢迎来小米之家解决你遇到的问题，了解最新的小米官方产品最全面的产品信息，还有很多好玩的活动等你来访。<br>
                    你还可以前往小米授权维修网点解决售后问题，520家网点让服务随时在身边。
                </dd>
            </dl>
            <p>
                <a href="//www.mi.com/c/xiaomizhijia/" class="btn btn-large btn-line-primary" data-stat-id="92bb525974bcde0e" onclick="_msq.push(['trackEvent', '8076ed7ffc35f6db-92bb525974bcde0e', '//www.mi.com/c/xiaomizhijia/', 'pcpid']);">小米之家</a>
                <a href="//www.mi.com/c/service/poststation/" class="btn btn-large btn-line-primary" data-stat-id="a684b74699138aae" onclick="_msq.push(['trackEvent', '8076ed7ffc35f6db-a684b74699138aae', '//www.mi.com/c/service/poststation/', 'pcpid']);">官方维修网点</a>
            </p>
        </div>
    </div>
</div>

 <script type="text/javascript">
    //测试
        var g_id 
        var kucun;
        var guige;
        var pk;
        var price;
    //点击版本套餐隐藏
        $('.J_stepItem').click(function(){

        //alert('ASA');
          $(this).css('border','solid 1px #f36701');
          $(this).siblings().css('border','solid 1px #dfdfdf');
          $('#J_packageListBox').css('display','none');
          $('#J_choosePackage').css('display','none');
          //并且获取值
          var aaa = $(this);
          kucun = aaa.children('.kucun').val();

          price = aaa.children('.price').val(); 
          g_id = aaa.children('.g_id').val();
          miaoshu = aaa.children('.miaoshu').val();
            // console.log(kucun);
            // console.log(price);
            //console.log(miaoshu);
            //修改一句话藐视
          $('#miaoshu').html(miaoshu);
        
        
        })
    //点击颜色套餐显示
    $('.a').click(function(){
        $(this).css('border','solid 1px #f36701');

        $(this).siblings().css('border','solid 1px #dfdfdf');
        $('#J_choosePackage').css('display','block');
        $('#J_packageListBox').css('display','none');
         var bbb = $(this);
           guige = bbb.children('.guige').val();
           //获取图片的url
           pic = $(this).children('.image').val();
            console.log(pic);
            //修改大图片的位置
        $('#J_proImg').attr('src',pic);
        })

         //套餐内商品显示
         $('.J_packageItem').click(function(){

            //alert('ASA');
            var bbb = $(this);
               pk = bbb.children('.pk').val();
               console.log(pk);
              $(this).css('border','solid 1px #f36701');
              $(this).siblings().css('border','solid 1px #dfdfdf');
              $('.pro-choose-result').css('display','block');

             $('#J_packageListBox').css('display','block');
            })



//获得值点击加入购物车是发送
        $('#J_chooseResultInit').click(function(){
            $.get('/home/cart/aa',{g_id:g_id,size:kucun,color:guige,pk:pk,price:price})

            // location.assign('/home/cart');
        })
        


</script>














<div class="site-footer">
    <div class="container">
        <div class="footer-service">
            <ul class="list-service clearfix">
                            <li><a rel="nofollow" href="//www.mi.com/service/exchange#repaire" target="_blank"><i class="iconfont">&#xe634;</i>1小时快修服务</a></li>
                            <li><a rel="nofollow" href="//www.mi.com/service/exchange#back" target="_blank"><i class="iconfont">&#xe635;</i>7天无理由退货</a></li>
                            <li><a rel="nofollow" href="//www.mi.com/service/exchange#free" target="_blank"><i class="iconfont">&#xe636;</i>15天免费换货</a></li>
                            <li><a rel="nofollow" href="//www.mi.com/service/exchange#mail" target="_blank"><i class="iconfont">&#xe638;</i>满150元包邮</a></li>
                            <li><a rel="nofollow" href="//www.mi.com/static/maintainlocation/" target="_blank"><i class="iconfont">&#xe637;</i>520余家售后网点</a></li>
                        </ul>
        </div>
        <div class="footer-links clearfix">
            
            <dl class="col-links col-links-first">
                <dt>帮助中心</dt>
                
                <dd><a rel="nofollow" href="//www.mi.com/service/account/register/"   target="_blank">账户管理</a></dd>
                
                <dd><a rel="nofollow" href="//www.mi.com/service/buy/buytime/"   target="_blank">购物指南</a></dd>
                
                <dd><a rel="nofollow" href="//www.mi.com/service/order/sendprogress/"   target="_blank">订单操作</a></dd>
                
            </dl>
                
            <dl class="col-links ">
                <dt>服务支持</dt>
                
                <dd><a rel="nofollow" href="//www.mi.com/service/exchange"   target="_blank">售后政策</a></dd>
                
                <dd><a rel="nofollow" href="http://fuwu.mi.com/"   target="_blank">自助服务</a></dd>
                
                <dd><a rel="nofollow" href="http://xiazai.mi.com/"   target="_blank">相关下载</a></dd>
                
            </dl>
                
            <dl class="col-links ">
                <dt>线下门店</dt>
                
                <dd><a rel="nofollow" href="//www.mi.com/c/xiaomizhijia/"   target="_blank">小米之家</a></dd>
                
                <dd><a rel="nofollow" href="//www.mi.com/static/maintainlocation/"   target="_blank">服务网点</a></dd>
                
                <dd><a rel="nofollow" href="//www.mi.com/static/familyLocation/"   target="_blank">零售网点</a></dd>
                
            </dl>
                
            <dl class="col-links ">
                <dt>关于小米</dt>
                
                <dd><a rel="nofollow" href="//www.mi.com/about"   target="_blank">了解小米</a></dd>
                
                <dd><a rel="nofollow" href="http://hr.xiaomi.com/"   target="_blank">加入小米</a></dd>
                
                <dd><a rel="nofollow" href="//www.mi.com/about/contact"   target="_blank">联系我们</a></dd>
                
            </dl>
                
            <dl class="col-links ">
                <dt>关注我们</dt>
                
                <dd><a rel="nofollow" href="http://e.weibo.com/xiaomishouji"   target="_blank">新浪微博</a></dd>
                
                <dd><a rel="nofollow" href="http://xiaoqu.qq.com/mobile/share/index.html?url=http%3A%2F%2Fxiaoqu.qq.com%2Fmobile%2Fbarindex.html%3Fwebview%3D1%26type%3D%26source%3Dindex%26_lv%3D25741%26sid%3D%26_wv%3D5123%26_bid%3D128%26%23bid%3D10525%26from%3Dwechat"   target="_blank">小米部落</a></dd>
                
                <dd><a rel="nofollow" href="#J_modalWeixin" data-toggle="modal" >官方微信</a></dd>
                
            </dl>
                
            <dl class="col-links ">
                <dt>特色服务</dt>
                
                <dd><a rel="nofollow" href="//order.mi.com/queue/f2code"   target="_blank">F 码通道</a></dd>
                
                <dd><a rel="nofollow" href="//www.mi.com/mimobile/"   target="_blank">小米移动</a></dd>
                
                <dd><a rel="nofollow" href="//order.mi.com/misc/checkitem"   target="_blank">防伪查询</a></dd>
                
            </dl>
                
            <div class="col-contact">
                <p class="phone">400-100-5678</p>
<p><span class="J_serviceTime-normal" style="
">周一至周日 8:00-18:00</span>
<span class="J_serviceTime-holiday" style="display:none;">2月7日至13日服务时间 9:00-18:00</span><br>（仅收市话费）</p>
<a rel="nofollow" class="btn btn-line-primary btn-small" href="//www.mi.com/service/contact" target="_blank"><i class="iconfont">&#xe600;</i> 24小时在线客服</a>            </div>
        </div>
    </div>
</div>
<div class="site-info">
    <div class="container">
        <div class="info-text">
            <p><a href="//www.mi.com/index.html"   target="_blank">小米网</a><span class="sep">|</span><a href="http://www.miui.com/"   target="_blank">MIUI</a><span class="sep">|</span><a href="http://www.miliao.com/"   target="_blank">米聊</a><span class="sep">|</span><a href="http://www.duokan.com/"   target="_blank">多看书城</a><span class="sep">|</span><a href="http://www.miwifi.com/"   target="_blank">小米路由器</a><span class="sep">|</span><a href="http://call.mi.com/"   target="_blank">视频电话</a><span class="sep">|</span><a href="http://blog.xiaomi.com/"   target="_blank">小米后院</a><span class="sep">|</span><a href="http://xiaomi.tmall.com/"   target="_blank">小米天猫店</a><span class="sep">|</span><a href="http://shop115048570.taobao.com"   target="_blank">小米淘宝直营店</a><span class="sep">|</span><a href="http://union.mi.com/"   target="_blank">小米网盟</a><span class="sep">|</span><a href="//static.mi.com/feedback/"   target="_blank">问题反馈</a><span class="sep">|</span><a href="#J_modal-globalSites"   target="_blank">Select Region</a>            </p>
            <p>&copy;<a href="//www.mi.com/" target="_blank" title="mi.com">mi.com</a> 京ICP证110507号 京ICP备10046444号 <a rel="nofollow"  href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802020134" target="_blank">京公网安备11010802020134号 </a><a rel="nofollow"  href="//c1.mifile.cn/f/i/2013/cn/jingwangwen.jpg" target="_blank" rel="nofollow">京网文[2014]0059-0009号</a>

<br> 违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</p>
        </div>
        <div class="info-links">

                    <a href="#" target="_blank"><img src="#" alt="TRUSTe Privacy Certification" /></a>
                    <a href="#" target="_blank"><img src="/xiangqingye/Picture/v-logo-2.png" alt="诚信网站" /></a>
                    <a href="#" target="_blank"><img src="/xiangqingye/Picture/v-logo-1.png" alt="可信网站" /></a>
                    <a href="#" target="_blank"><img src="/xiangqingye/Picture/v-logo-3.png" alt="网上交易保障中心" /></a>

                </div>
    </div>
    <div class="slogan ir">探索黑科技，小米为发烧而生</div>
</div>
<!-- .site-footer END -->

<!-- .modal-globalSites END -->

   
</body>
</html>